home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Classes / 2.0_Venn / VennInspector.m < prev    next >
Encoding:
Text File  |  1992-06-16  |  1.1 KB  |  54 lines

  1. // VennInspector.m
  2. // Copyright (c) 1992 by Paul Burchard.
  3. // May be used in any form with appropriate acknowledgement.
  4.  
  5. #import <nib/InterfaceBuilder.h>
  6. #import <appkit/appkit.h>
  7. #import "VennInspector.h"
  8. #import "Venn.h"
  9.  
  10. @implementation VennInspector
  11.  
  12. + finishLoading:(struct mach_header *)header 
  13. {
  14.     NIBDidLoadClass(self, header);
  15.     return nil;
  16. }
  17.  
  18. + startUnloading 
  19. {
  20.     NIBWillUnloadClass(self);
  21.     return nil;
  22. }
  23.  
  24. - init
  25. {
  26.     [super init];
  27.     [NXApp loadNibSection:"VennInspector.nib" owner:self];
  28.     return self;
  29. }
  30.  
  31. - revert:sender
  32. {
  33.     [window endEditingFor:self];
  34.     [borderWidthField setFloatValue:[object borderWidth]];
  35.     [firstTitleField setStringValue:[object firstTitle]];
  36.     [secondTitleField setStringValue:[object secondTitle]];
  37.     [vennState setState:[object state]];
  38.     return [super revert:sender];
  39. }
  40.  
  41. - ok:sender
  42. {
  43.     [window endEditingFor:self];
  44.     [object setBorderWidth:[borderWidthField floatValue]];
  45.     [object setFirstTitle:[firstTitleField stringValue]];
  46.     [object setSecondTitle:[secondTitleField stringValue]];
  47.     [object setState:[vennState state]];
  48.     return [super ok:sender];
  49. }
  50.  
  51.  
  52. @end
  53.  
  54.